package com.base.service.COUPON.impl;

import com.base.mapper.couponmapper.CouponBrandMapper;
import com.base.po.voip_coupon.CouponBrand;
import com.base.po.voip_coupon.CouponBrandExample;
import com.base.service.COUPON.CouponBrandService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("couponBrandService")
public class CouponBrandServiceImpl implements CouponBrandService {
    @Autowired
    private CouponBrandMapper couponBrandMapper;

    @Override
    public int countByExample(CouponBrandExample example) {
        return couponBrandMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CouponBrandExample example) {
        return couponBrandMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return couponBrandMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CouponBrand record) {
        return couponBrandMapper.insert(record);
    }

    @Override
    public int insertSelective(CouponBrand record) {
        return couponBrandMapper.insertSelective(record);
    }

    @Override
    public List<CouponBrand> selectByExample(CouponBrandExample example) {
        return couponBrandMapper.selectByExample(example);
    }

    @Override
    public List<CouponBrand> selectAll(Page page, String parentId, String topId, Integer level, Integer sort) {
        return couponBrandMapper.selectAll(page, parentId, topId, level, sort);
    }

    @Override
    public CouponBrand selectByPrimaryKey(String id) {
        return couponBrandMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CouponBrand record, CouponBrandExample example) {
        return couponBrandMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CouponBrand record, CouponBrandExample example) {
        return couponBrandMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CouponBrand record) {
        return couponBrandMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CouponBrand record) {
        return couponBrandMapper.updateByPrimaryKey(record);
    }

    @Override
    public int countAll(String parentId, String topId, Integer level) {
        return couponBrandMapper.countAll(parentId, topId, level);
    }

    @Override
    public void clearAll() {
        couponBrandMapper.clearALl();
    }

}
